class OpenSocialController < ApplicationController
  layout nil

  def person 
    if params[:id] == "me"
      @person = current_user
    else
      @person = User.find(params[:id])
    end

    # TODO: 2007-11-10 <tony@tonystubblebine.com> -- I think there's a
    # different idiom for this where you set the format manually and then rails
    # picks the template. Couldn't find the syntax.
    render :template => "open_social/person.atom.builder"
  end

  def friends
    if params[:id] == "me"
      @person = current_user
    else
      @person = User.find(params[:id])
    end

    render :template => "open_social/friends.atom.builder"
  end
end
